package org.example.springbootwork.Reflection;

public class Test01 {
    public static void main(String[] args) throws ClassNotFoundException{
        //方法一:Class 静态方法forName
        Class cls = Class.forName("org.example.springbootwork.Reflection");
        System.out.println(cls.getName());

        //方法二：类名.class
        Class<Test01> test01Class = Test01.class;
        System.out.println(test01Class.getName());

        //方法三：对象.getClass
        Test01 test01 = new Test01();
        Class aClass = test01.getClass();
        System.out.println(aClass.getName());

    }
}
